//
//  TSCMyMulticastDelegate.h
//  Tsc_IOS
//
//  Created by Rio on 15-10-19.
//  Copyright (c) 2015年 idream. All rights reserved.
//
// 实现参考：http://blog.scottlogic.com/2012/11/19/a-multicast-delegate-pattern-for-ios-controls.html
//
// 解决死循环调用参考：
// 1. 问题提出：http://lists.apple.com/archives/cocoa-dev/2010/Feb/msg01391.html
// 2. 问题解决：http://lists.apple.com/archives/cocoa-dev/2010/Feb/msg01415.html
// 就是说，不能让TSCMyTextView的delegate设置为自身（self）


#import <Foundation/Foundation.h>

// handles messages sent to delegates, multicasting these messages to multiple observers
@interface TSCMyMulticastDelegate : NSObject

// Adds the given delegate implementation to the list of observers
- (void)addDelegate:(id)delegate;

@end


